package com.cwm.test.adapter.v2.adapter;

import com.cwm.test.adapter.v2.IPasswordForThird;
import com.cwm.test.adapter.v2.PassportService;
import com.cwm.test.adapter.v2.ResultMsg;

public abstract class AbstractLoginAdapter extends PassportService implements ILoginAdapter {

    protected ResultMsg loginForRegister(String username, String password) {
        if (null == password) {
            password = "THIRD_EMPTY";
        }
        super.regist(username, password);
        return super.login(username, password);

    }
}
